import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    addressInfo:null,
    city:"",
    categoryInfo:"",
  },
  mutations: {
    addressInfo(state,val){
      state.addressInfo = val;
    },
    getCity(state,val){
      state.city = val;
    },
    getCategoryInfo(state,val){
      state.categoryInfo = val;
      // console.log(val);
    }
  },
  actions: {
  },
  modules: {
  }
})
